unit mkb_poisk;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.Grids,
  Vcl.DBGrids;

type
  TMkbPoisk = class(TForm)
    DBGrid1: TDBGrid;
    EdSearch: TEdit;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    procedure BitBtn1Click(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MkbPoisk: TMkbPoisk;

implementation

{$R *.dfm}

uses dm;

procedure TMkbPoisk.BitBtn1Click(Sender: TObject);
begin
dmmain.dsetMKB.Close;
dmmain.dsetMKB.ParamByName('MKB_NAME').AsString:=edSearch.Text;
dmmain.dsetMKB.Open;
end;

procedure TMkbPoisk.BitBtn2Click(Sender: TObject);
begin
MkbPoisk.Close;
end;

end.
